package javaClassExercise.designPatterns.proxyModel;

/**
 * Created by lomo .
 *
 * Proxy 测试类
 */
public class ProxyTest {

    public static void main(String... args) {
        Sourceable sourceable = new Source();
        //sourceable.method(); // Source类里实现接口Sourceable的method方法!

        Proxy proxy = new Proxy();
        proxy.method();
        /*
        代理类Proxy类中实现的、override的 method方法！
        1
        Source类里实现接口Sourceable的method方法!
                3
         */

    }
}
